﻿using Commons.ReturnData;
using IdentityServer.Domain.Entities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IdentityServer.Domain.IRepositories
{
    public interface IWeChatRepository
    {
        /// <summary>
        /// 根据openId查询是否有这个用户
        /// </summary>
        /// <param name="openId"></param>
        /// <returns></returns>
        Task<WeChatUser?> FindByOpenIdAsync(string openId);
        /// <summary>
        /// 创建一条数据
        /// </summary>
        /// <param name="weChatUser"></param>
        /// <returns></returns>
        Task<MessageResult> CreateWechatUserAsync(WeChatUser weChatUser);
    }
}
